<?php
namespace app\console\validate;

use think\Validate;

class AuthGroup extends Validate
{
    protected $rule = [
        ['title', 'require'],
        ['description', 'require'],
//        ['module', 'require'],
//        ['status', 'require'],
//        ['type', 'require'],
    ];

    protected $message = [
        'title.require'       => '请填写用户组名称',
        'description.require' => '请填写用户组描述',
        'module.require'      => '请填写用户组模块',
        'status.require'      => '请选择用户组状态',
        'type.require'        => '请选择用户组类型',
    ];

    protected $scene = [
        'create' => ['title', 'description', 'module', 'status', 'type'],
    ];
}